$(function() {
	var img_height = $('#slideshow > div > img').height();// slideshow
	var div_height = $('#slideshow > div').parent().parent().height() -20;// container
	var img_width = $('#slideshow > div > img').width();// slideshow
	var div_width = $('#slideshow > div').parent().parent().width() -20;// container
	$('#slideshow > div > img').css({
		'height' : div_height
	});
	$('#slideshow > div > img').css({
		'width' : div_width
	});
	$("#slideshow > div:gt(0)").hide();

	setInterval(function() {

		$('#slideshow > div:first').fadeOut(2000).next().fadeIn(2000).end()
				.appendTo('#slideshow');
	}, 3000);
});
